import { Module } from '@nestjs/common';
import { RedisModule } from '@chenjm/nestjs-redis';
import config, { Config } from './env/index';

const redisConfig = (config() as Config).redis;

@Module({
  imports: [RedisModule.forRoot(redisConfig)],
})
export class RedisClientModule {
  constructor() {
    console.log('初始化DBModule');
  }
}
